You need to URLEncode the query parameter. Here's a good online encoder: http://meyerweb.com/eric/tools/dencoder/ but realistically, whatever language you are using to automate should have a built-in urlencode() function that will do it for you (individually for each query parameter, though the url is usually the one that causes issues).