fix dht issue for platforms where char is unsigned. introduce assert