Properly null-terminate strings in measures2csv.