Updated character encoding test case