perl -pe 'BEGIN{binmode STDIN,":encoding(utf16)";binmode STDOUT,":utf8"} 1;' < in > out