Adds IDNA support

Addresses #29.