Fix off-by-one in hex dump function.