The issue is the conversion of file between different operating systems.
The server is a unix system, which changes the line termination character. As such when the files is downloaded from the server, you need to use a utility like unix2dos
to convert the file.