fix string hash code for c version

holding off on check files until @namin's changes are in