replace space with underscore in exported edgelist