patch java-readline to work with utf8 locales.

not perfect, but it at least works for my environment