fix download with unicode paths