Checks CHAR_TABLE before EXTENDED_ESCAPE on encode
Merge pull request #5 from yury/change-if-sort

Checks CHAR_TABLE before EXTENDED_ESCAPE on encode