dnsapi: Perform a wide character string comparison if the character set is unknown.