Fix auto linking urls with subdomain with underscore.

Closes #3392