translate dashes to underscores for routes, fixes #13824