`recode' is a great utility on Ubuntu if you need to share a Ubuntu file with another OS (don't tell about dos2unix and back).
First install recode:
`recode' needs to be used at the console.
sudo apt-get install recode
Convert the UNIX-style <file> to DOS/Windows format.
Convert the Machintosh-style file to UNIX (Linux, BSD etc.) format.
Simple tutorial on Usage
The format. By default, convert <format>-style file to UNIX-style format. Use .. for the reserve.
The file to convert.