@Test
public void testSafeFilename() {

    assertEquals("1_Invoice#0001", IOUtils.toSafeFilename("1_Invoice#0001:*<>/\\"));
    assertEquals("..test", IOUtils.toSafeFilename("../test"));
    assertEquals("..test", IOUtils.toSafeFilename("..\\test"));
    assertEquals(".test", IOUtils.toSafeFilename("./test"));
    assertEquals("rest", IOUtils.toSafeFilename("\r\n\t\frest"));
}