Move utf8 validation tests to the test framework