CORE-4004: made a small change to ensure that single quotes in Jargon queries are escaped correctly