add utf8 support for TextField widget