Fixed hexadecimal encoding (some nibbles were being removed from
output).