Encode OpenPGP key ids (often negative as Long) for navigation routes.
Decodes a hex route segment back into a Long key id (0 when invalid).
Encodes keyId as an unsigned hex string safe for a route segment.