Changed filetype from binary to ascii when writing files from remote server