Changed qualifier for entering processing of doubleEscapedQuotes to make sure that already not in escape state.

This: 

if (allowsDoubledEscapedQuotes && state.inQuotes) {
...
}

Changed to:

if (allowsDoubledEscapedQuotes && !state.inEscape && state.inQuotes) {
...
}