removing escaped commas, enclosing related fields with double quotes