Hexadecimal encoding/decoding.