Fixed sending encrypted data. Needed to use base64.