truncateToCloseFrameReasonLength

Truncates this string to 123 bytes (CLOSE_REASON_MAX_LENGTH_BYTES), for it to be suitable as web socket close reason.

The "reason" in WS close frames must not be longer than 123 bytes (not characters!) when encoded in UTF-8, due to the limit on control frames defined by the web socket protocol specification RFC-6455.