Support bytewise/hex encoding