correctly pack a hex value for coinbase value