Add support for IDNA.

Blocked by [0ee9a41683].