-Fix export issues in html and csv (hopefully still works in windows)