Base64 encode the UserData as required