Fix hex dump logic on byte buffer dump