predicate query string escape fix #897