Adding check of SNI in hostname validation.