Fix empty hashfile

Converted to manual decode in order to catch errors.