Filter problem contents before saving to disk to handle line ending problems. All occurences of \r\n and \r are replaced by \n. Began improving the error messages if files cannot not be read.
Changed paths: