escape single-quotes in jdoql [WG-14]
only use Content-Encoding:gzip header when we are compressing, duh
LOCAL: turn off visual matcher again