fix bug: domain end with dot validate
add idna validate: -- can't be third chars
Merge pull request #212 from forumbyr/master

fix bug, see commit for detail