I think it may be useful support punycode encoding for host names. I think thre 2 separate task 1. Add falgs similar to CURLU_URLENCODE/CURLU_DECODE to HOST part 2. Decode IDN urls provided in unicode in punycode form.