Open the file with xemacs. As the bundled emacs does not work for this purpose, I've installed a copy through fink.
Now type:
Meta-x replace-stringThis changes ^M (Mac linefeeds) to ^J (Unix linefeeds) for the entire buffer.
^Q^M
^Q^J
Save it:
^X^Sand you're done.

