I wish the function name was clearer about what it does.  This function takes a String and performs a base64 encoding of utf-8 octets?