what is the best way to convert a UTF-16 files to UTF-8? I need to use this in a cmd script.
There is a GNU tool recode which you can also use on Windows. E.g.
recode utf16..utf8 text.txt