Fix rTorrent connectivity

The combination of cleanHost and rTorrent.connect issues caused rTorrent
connections to fail. This update fixes cleanHost() so that it can
actually cope with SSL based hosts and finishes the migration to
cleanHost() in connect()

This also adds a doctest to cleanHost to avoid running in to this issue in the future.