The line endings thing is more of a Windows WTF. In the Windows world, text files and binary files are distinct from each other - this is why FTP clients on Windows are legendary for buggering up files by "converting" them from binary to text format.
Why Windows has to perputuate this hangover from the teletype days (where two characters signified "carriage return" then "line feed" so that the teletype had time to move the print head to the beginning of the next line) is beyond me.