I just found out that if there is a whitespace after the host name it will break the site routing.
For example if I input "www.mysite.com " and then go to that url I will get an error page.
If I change it to "www.mysite.com" it works.
Is this a known issue?
Does seem like a "by design" issue.
But could ofcourse turn it into a feature request and ask for a trim to be added on the saving of the value.