handle bad base64 encoded data