correctly escape values for the csv file
correctly strip nt path stuff, fixes incorrect leading backslash stripping