Revert "Revert "ignore badly encoded Utf8 data""

This reverts commit 00d4bf24b45e42fae13135a68131a1e18288dcca.
Update readHost to return host as per existing description