public static boolean isValidCharForFilename(char c) {
		for (int i = 0; i < ILLEGAL_CHARS_ANY_OS.length; i++) {
			if (ILLEGAL_CHARS_ANY_OS[i] == c)
				return false;
		}

		if (OsUtils.isWindows()) {
			for (int i = 0; i < ILLEGAL_CHARS_WINDOWS.length; i++) {
				if (ILLEGAL_CHARS_WINDOWS[i] == c)
					return false;
			}
		} else {
			for (int i = 0; i < ILLEGAL_CHARS_UNIX.length; i++) {
				if (ILLEGAL_CHARS_UNIX[i] == c)
					return false;
			}
		}

		return true;
	}