Implement textEncode and textDecode functions
Merge pull request #451 from runrevfraser/refactor-syntax_unicode_encode_decode

Implement textEncode and textDecode functions