Refactor cleaning of resource_name/description for use in filenames.