Encodes redirect html bodies in base64