Fixing bug in escapeAndAppend() with escapeQuotes == YES.
Closes issue #10.