Rewrote all the quoting stuff, including decodeBlob support