Usually IDN_ALLOW_UNASSIGNED won't help since it'll potentially allow illegal IDN code points in the output punicode string. This flag is intended for querying when you may attempt to match a different version of the IDN standard, but in practice it'd be best to just use the latest version of the standard.