Convert matches to instances of URI
Test hostnames with underscores.