parse-quote: miscellaneous bug fixes