more utf8 tests and fixes