replace spaces by dashes in resources names