Beter normalization for directive and filter names