cleanup input path, and handle UTF-8 input properly in the frontend
yay, binding curses "special" keys works now