Encode String in base64 format and UTF-8 character encoding.
Encode ByteArray in base64 format and UTF-8 character encoding.