Use streams when generating hashes of remote files
use binary safe read
Merge pull request #7825 from owncloud/hash-stream

Use streams when generating hashes of remote files