URL encode static segments in routes on tree construction.