I\'m used to using vim to modify a file\'s line endings:
$ file file file: ASCII text, with CRLF line terminators $ vim file :set ff=mac :wq $ file file file
While using vim to do it is perfectly possible, why don't you simply use iconv? I mean - loading text editor just to do encoding conversion seems like using too big hammer for too small nail.
Just:
iconv -f utf-16 -t utf-8 file.xml > file.utf8.xml
And you're done.