translate dashes to underscores for routes, fixes #13824

Fixes #13824