Allow both escaped ' and " chars in string literals

Regardless of the quote type used to represent the string literal. Fixes #1291.