Escape values for query.