code: public Packet putString(String s, Charset charset, ByteOrder order) {
          var bytes = s.getBytes(charset);
          putShort(bytes.length, order);
          putBytes(bytes);
          return this;
      }
docs: Writes a single {@link String} encoded with the specified {@link Charset} and {@link ByteOrder} to this
  {@link Packet}'s payload.
  <br><br>
  A {@code short} is used to store the length of the {@link String} in the payload header, which imposes a
  maximum {@link String} length of {@code 65,535} with a {@link StandardCharsets#UTF_8} encoding or
  {@code 32,767} (or less) with a different encoding.
  
  @param s       The {@link String} to write.
  @param charset The {@link Charset} of the {@link String} being written.
  @param order   The internal byte order of the {@link String}.
  @return The {@link Packet} to allow for chained writes.