Using binmode for reading and writing files to preserve carriage returns on windows native files.