Spurious byte being added in line encoding of packet