fixed line ending issue when uploading csv