Encoding the sending query string