How to convert a string that is in UCS2 (2 bytes per character) into a UTF8 string in Ruby?
You should look into iconv, which is part of the Ruby standard library. It is designed for this task.
Specifically,
Iconv.iconv("utf-8", "utf-16", str).first
should handle the conversion.