Fix encoding of intl DNS

IDNA encoding will generate xn-- prefixed byte strings when needed.