For Windows, there is a small freeware utility called unix2dos.exe and dos2unix.exe. Using the utility you can convert to the specific format. These programs are relatively easy to find using your favourite search engine.
I only offer this in the event you continue having problems getting the conversions right.
Comment on Re: Perl line endings: something broken in ActiveState Perl 5.8?