legacy tests: migrate test_utf8