Replace some special characters in classNames with _ for better result grouping.