this may be wrong but it could be the fact windows and linux use different line endings.
Windows: \r\n
Linux: \n

when loading the files it could be conflicting, just an idea however.