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

Fixes #3692