make NormalizeAsResourceName simpler