Fix OSK on Android, wchar_t is not always 16 bits.

Fixes #2073.
Merge pull request #2086 from unknownbrackets/osk-fix

Fix OSK on Android, wchar_t is not always 16 bits