in reply to Removing Control Characters

Assuming you're working from the command line:

perl -015 -pi.bak -e "chomp" filename