Changed international text input handling, which hopefully will stop crashes