Fix for Emacs being confused by IME.