エラーくらい読まないと馬鹿になるぞ
> Encoding::ConverterNotFoundError: code converter not found (UTF-8 to UTF-16)

irb> p "utf-8文字列\xE3".encode('UTF-16BE', :invalid => :replace, :replace => '').encode('UTF-8')
"utf-8文字列"