Fixed euler path encoding