public SymbolPath replaceInvalidChars() {
		List<String> modList = new ArrayList<>();
		for (String str : asList()) {
			modList.add(SymbolUtilities.replaceInvalidChars(str, true));
		}
		return new SymbolPath(modList);
	}
Returns a new SymbolPath in which invalid characters are replaced
with underscores.
@return the new SymbolPath with replaced characters.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/util/SymbolPath.java