public static String encodeForRegistry(String element) {
    return IDN.toASCII(element);
  }
@Test
  public void testFormatIdempotent() throws Throwable {
    assertConverted("xn--lzg", RegistryPathUtils.encodeForRegistry(EURO));
  }