Remove debug outputs that make the downloaded file invalid