add more rules for encoding
Merge pull request #3 from georgeye/master

add more rules for encoding