Convert classnames to use mid/slashes for widget.type #3583