Fixes an issue in check_dn() that would have prevent it from working with UTF-8 distinguished names