Revert changes in lib/validate.js. The IPv6 hostname validation will be done in a new branch