Add workaround for UTF16 unicode problem with Swig bindings.