Handle base64 exceptions