Fix memory leak using unicode_putUtf16