Additional formatting for query - escape special characters and urlencode.