added some fixes for weird newlines in csv uploads