Processed byte calculation has been broken when encoding bignum