fixed bug where files with invalid chars would be redownloaded