Transform dashes to underscores in resource route names

Fixes #13824
Add additional tests for #13824