fix download encoding issue