Fixing download problem regarding encoding