I would want it to be ASCII text only, not with the CLRF terminators. I'm not sure about the difference, since the file that works contains newlines as well.
I've managed to change it by running the following command:
The output reads:
$ perl -pi -e 's/\r$//g' original_file.txt
To reverse it, I believe you can use the unixdos command
$ file original_file.txt
original_file.txt: : ASCII English text
However, it would be fun to know if there is a way to programmaticly find the file type and change it, without running external commands.