Sanitize folder creation.