Change mode in download.file from 'w' to 'wb'