Parser: properly handle escaped double quotes and backslashes in quoted strings