title: Unable to add json string to a url with special character. Illegal character exception
body: <p>I have a situation here, where i need to make a webservice call. I have a url and some parameters needs to be added to this url. These parameters have a start date and an end date which needs to be sent. So i parse this with JSON and create a url.</p>
  
  <p>needed url:
  <a href="http://somelink.com/somemethod?param=" rel="nofollow">http://somelink.com/somemethod?param=</a>{"startingAT":"2013-04-23","endingAT":"2013-04-30"}</p>
  
  <p>When I execute this url using WebResource, like:
  WebResource webResource = client.resource(url);
  ClientResponse response = webResource.accept("application/json")    .get(ClientResponse.class);
  String output = response.getEntity(String.class);</p>
  
  <p>I have made a JSON string for the parameter which is : {"startingAT":"2013-04-23","endingAT":"2013-04-30"} i.e. exactly the same as what I need.</p>
  
  <p>When I execute this url, i get an illegal character exception. Please Help!!!!</p>