Add custom string encoding handling.
Finished up
Switched encoded string representation to using IANA enums.