anonymization and file extension to be enhanced

anonymization tries to create a directory (might not be allowed)
files extension should handle properly the case where there is NO file extension