Hash the file in chunks. Fixes #1.