add idn compatibility