Fix incorrect cahrs by encoding.