add translation for encoding