the base64 is fine AFAIC. URL-encoding a JSON dict would get ugly really fast.