Fixed #1120

The owin host was setting the hostname to hostname:port (as it comes from
OWIN), rather than splitting it out to just the hostname and setting the
port separately, this meant the redirects to https were ending up as
https://hostname:normalport:httpsport/ which wasn't valid.