Small fixes
A selection of 80 fixes from 174 pull requests.
31.Characters are not bytes
“€” counted as one unit against a byte watermark, although its UTF-8 encoding occupies three bytes. Measure the encoded payload.
1123if (highWaterMark !== undefined) {bufferSize += typeof data === "string" ? data.length : data.byteLength bufferSize += typeof data === "string" ? encoder.encode(data).byteLength : data.byteLength}