Encodes data with MIME base64