fix path encoding