Fix issue where dashes were being stripped from the rule name