Perform a more thorough validation of the virtual host name. Closed #45.