added a notion of safe-identifiers such that files with non-valid
identifier characters would get swapped with '_'.