BZ-1019268: consistent use of encode/decode on Path's URI