hashtable: add char_hash() and char_equal()