Fixed bug in hex2bin that a byte miscount under all conditions.