fixes #1929 - ensures that docx and xlsx files are handled correctly whe...