See #1: Fix output hex data having duplicate last byte