Fix QueryBuffer handling of multi-char quote at end of buffer

A statement may be arbitrarily split in the QueryBuffer now that it doesn't get just completely lines, which breaks only looking forward for start of quotes.

Fix by only looking behind for matches.

Also add lowercase 'e' escaped string to the known quote list, which was missed before.