Removed console.log messages accidentally left in error handling code
Added punycode encoding / decoding of DNS names to support Internationalised Domain Names