Correct problems with binary files and line endings