Fixes downloading on windows by using binary mode.