Avoid implicit unicode conversions in path_encode and path_decode, same as done previously for query strings.