FileUtils { public static String filterString(String s) { return s.replaceAll("[^a-zA-Z0-9.\\-]", "_"); }  static String filterString(String s); static URL toUrl(Path path);  }
@Test public void simpleFilterString() { String result = FileUtils.filterString("<1811836472.7.1486495191281.JavaMail.ebe@L-EBE-X260>"); Assert.assertEquals(result, "_1811836472.7.1486495191281.JavaMail.ebe_L-EBE-X260_"); }