replace spaces with underscore in the file name and selector
Merge pull request #955 from simod/issue-747

replace spaces with underscore in the file name and selector