class IOUtils {

    public static String toStrictFilename(String input) {
        String safe = defaultIfBlank(input, "").replaceAll("[^A-Za-z0-9_ .-]", "");
        if (safe.length() > 255) {
            safe = safe.substring(0, 255);
        }
        return safe;
    }

    private  IOUtils();

}