Fixing the extension for downloaded file.