test character encoding