Fix auto linking urls with subdomain with underscore.

Closes #3392
Merge pull request #3395 from ADmad/2.4-autolinkurl

Fix auto linking urls with subdomain with underscore.

Fixes #3392