Update file_history.py

Correctly handle encoding when figuring out the project hash