Add support for DOCX files as buffer