fix locale handling in routing