dos2unix

Example: A unix text file -> your mac -> Galaxy

The unix file may be unintentionally converted to DOS in the middle step.

To convert back:

dos2unix -n infile outfile