[Refactoring] Use AS dasherize instead of gsub

:+1: Also need to require the corresponding Active Support core extension.