Unicode aware encoding and decoding of URI path segments.