Fixed a bug in s.c.filetransfer where files were opened in text mode
More strictly adhere to Python documentation about file.read(<size>) opening AT MOST <size> bytes (i.e. it might return less even before the end of the file)
Fixed a bug introduced by the previous commit