Reverted the encoding methods to return base64 encoding as byte array