prevent a last odd character from being ignored in decode_hex