Fixed bug where quote followed by terminator inside string only resulted in quote