Updating all csv writing to handle Windows newlines