TextInput - Special characters in macOS

TextInput works well in Windows but on Mac it won’t write special characters like ã, ã, â, etc. Is there any workaround to solve this issue? HTML5 target.

Here is where text input is handled currently on HTML5:

It might be worth adding a trace message to see if the correct values are coming in. Perhaps the input is working, but the UTF-8 values are getting lost somewhere later?