A couple of minor improvements to connector-files

* read from FTP in binary mode for hash correctness
* tweak call to write to make it 8.0 compatible
@nbessi well, I'm not sure exactly why, but it failed because context was not a valid argument for write