Use a hostname verifier that does hostname verification, backport #510, close #197