fixes for htmltext utf8