code: private static String enc(String in) {
          StringBuilder out = new StringBuilder(in.length() + 16);
          enc(in, out);
          return out.toString();
      }
docs: Returns an XML-appropriate encoding of the given String.
  
  @param in
  The String to encode.
  @return A new, encoded String.