fix csv upload encoding reading, fix csv upload error messages