Added helpers for input/output of hexadecimal text