use URLencode to, well, encode the url arguments