Only convert domain name to ASCII

IDNA is about domain name only, so ignore username, password and port.
Fixes #10010.
2 jobs for valid_url in 2 seconds (queued for 17 seconds)
Status Job ID Name Coverage
  Test
canceled #21329
code-quality

00:00:02

 
  Build
canceled #21330
linux