The best way to convert such files is to use Word Automation Services, which is a feature of SharePoint Server 2010.