Implementing slugification of class names