I have created endpoint to fetch data from database and download data in excel file using xmlswriter library. But rather than downloading the excel file it download text fil