Encode and decode Text to/from ByteString using TextEncoding