Fix bad url-safe base64 impl, styling