Enable hasher to accept non-string values.