[WFLY-1597] / [WFLY-2208] Handle a redirect from HTTP to HTTPS and convert to the correct address format for https-remoting.