Generate valid identifiers from context type and file names