add unicode support to TextFormatter