Fix #4559: don't use multibytes to read hash.

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
Merge pull request #1382 from Tithugues/b4559_master

Fix #4559: don't use multibytes to read hash.