implement hash-string a la java.lang.String hashCode