read files as binary to create chunks

Files need to be open as binary when compute hash to ensure same result under windows and linux platforms.
Doing it directly in chunks method.