Fixes #1296: stricter check of dashes in route.