Apart from character set conversion, this is really nothing more than
perl -pi.bk -e 's/\015$//'
If you really need the character set conversion, GNU's recode could probably help a lot.
printable version
chaos
Everything2 Help