Avoid implicit unicode conversions in path encode/decode

...as done previously for query strings.