added an api to hash ascii strings: less overhead