restrict file extensions for a filesystem (closes #1)