Loosened the filename validation on attachments

- filenames without extensions were blocked for example
Merge branch 'hotfix-2.1.29'