smart-quote preprocessing