Allow utf8 for keybinds.

Used some key processing stuff from vim.