Parser: improve quoted string escaping