ensures that weird names are replaced with underscores