Fix bugs for path encoding