fix download of txt files