Decode a segment produced by segment back to the original component.
Exact inverse of segment; on our own output the round-trip is lossless.
A stray % not followed by two hex digits is passed through literally so
decoding never panics on unexpected input.