On Mac OS X there is a very handy command called textutil, that can be invoked from the terminal and allows to convert a document from a format to another; Sometimes I use it to convert a RTF file into HTML, but it is also able to convert doc, docx, odt and other formats.