Merge pull request #56 from wick-ed/master

bugfix: root domain handling
removing double rtrim
Merge pull request #57 from zelgerj/master

removing double rtrim
bugfix: wrong trimming of host name