public static String getEncodedSpec(final FormSpec formSpec) {
    String result = formSpec.toString();
    while(true) {
      int pos = result.indexOf("dluX");
      if (pos < 0) {
        pos = result.indexOf("dluY");
      }
      if (pos < 0) {
        break;
      }
      result = result.substring(0, pos+3) + result.substring(pos+4);
    }


    return result;
  }
public static String getEncodedSpec(final FormSpec formSpec)