Properly hyphenate css class names for widgets.