Fixed DMHash* functions to comply with C strlen() that use null terminated strings