Fix: keep mandatory format in translatated routes

Without this fix, routes with a mandatory format (e.g.
"events.:format") lose the ".:format" part during translation.