Move charset conversion tests to the test framework