added partial unicode support for text input