File.php: support for MS Office template / macro files

Fixes #3692
Merge pull request #3708 from JorisDebonnet/patch-4

File.php: support for MS Office template / macro files