fix hexdump function in misc (not used)