Character encoding test