The IDNA flags parameter can take on the following values, or a bit-wise inclusive or of any subset of the parameters:
Idna_flags IDNA_ALLOW_UNASSIGNED
Allow unassigned Unicode code points.
Idna_flags IDNA_USE_STD3_ASCII_RULES
Check output to make sure it is a STD3 conforming host name.