Utilities for encoding and decoding common formats like hex, base64, and varint. Ported from Deno's @std/encoding.