bugfix: wrong trimming of host name
Merge pull request #58 from wick-ed/master

bugfix: wrong trimming of host name