This feels like the kind of thing that should be in domId(). Perhaps it could replace the current Inflector::camelize() map call? domId is a bit of a silly function, so this suggestion might not work.