urlencode the json file before it goes over the wire