using `%q` should automatically quote the string. 

(learned that from @bmizerany at GoSF the other night)