fix chinese Ime handling on windows

@lennartcl  see https://github.com/ajaxorg/ace/issues/1401