Fix Qemu keymap detection when having UTF-8 environment.