implement test character encoding