NODE-5150Backlog

client metadata appName truncation breaks when unicode characters straddle the 128th byte

makeClientMetadata truncates the appname using Buffer.subarray() and buffer.toString('utf8'):   This breaks when encoding a string that has a multi-byte unicode character that straddles the 128th byte in the array because `toString('utf8')' replaces the invalid bytes with the unicode replacement character:     h4. Acceptance Criteria Fix our string length truncation so that we never produce a string that's > 128 bytes.

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue
Connection Layer
Labels
Tags and classification
node-internal