Call str before base64/url encode arg.