toUTF16 should take buffer as out parameter
Merge pull request #950 from sinkuu/buf_out

toUTF16 should take buffer as out parameter