Remove non-alphanumeric characters from namePath