docs: public static void writeString(String s, DataOutput out) throws IOException {
          if(s != null) {
              out.write(1);
              out.writeUTF(s);
          }
          else
              out.write(0);
      }