Using Buffer.byteLength() for content-length calculation.