perl -Mopen=:std,IN,:raw:perlio:encoding(UTF-16le),OUT,:raw:perlio:encoding(UTF-8) -pe 1 < file.xml > file.utf8.xml