simple fix for an anoying problem by passing an unicode as the host parameter