throw exception if setting an illegal node name (instead of changing it quietly)