fix some issues with utf8