fix host string conversion