Set encoding correctly for some hosts