escape quotes in a fashion compatible with read.csv