private static void checkInvalidChar(String type, String str, int startIndex) {
		for (int i = startIndex; i < str.length(); i++) {
			char c = str.charAt(i);
			if (DISALLOWED_CHARS.contains(c)) {
				throw new IllegalArgumentException(
					type + " contains invalid character: '" + c + "'");
			}
		}
	}
Check for characters explicitly disallowed in path or project name.
@param type type of string to include in exception
@param str string to check
@param startIndex index at which to start checking
@throws IllegalArgumentException if str contains invalid character
Ghidra/Framework/Project/src/main/java/ghidra/framework/model/ProjectLocator.java