script no creates valid csv files with the right escaping of quotes