Implement -[OFString_UTF8 hash] for better performance.