Added more handling rules for String.encode
Merge pull request #206 from nhr/master

Added more handling rules for String.encode