Remove unnecessary header length calculation for stratum header binary and only binary convert the correct length of the header.