Update src/hash.c

Fix crash on key values with non-latin1 symbols due to negative hash value).