[v9_11] Prevent "idna" test failures with libidn2 2.2.0+

(cherry picked from commit 60ce0ed4)

Merge request reports