`url.format` would avoid this manipulation