fixed conversion

typo fix in encoding type