net: account encoding in .byteLength