adding an escape when parsing the query to avoid earlier EOF