Standardize base64 errors.
Fix test.