Returns a hash code derived from the code units of the string.
This is compatible with [operator==]. Strings with the same sequence of code units have the same hash code.