Fixing Issue wherby files were being downloaded with .txt extension