Fix bytes issue with call to base64.b64decode.