minor things in NormalizeAsResourceName