removing escape characters from query string