Replace all base64 decoding errors with BadData.