try to shore up the variation in encoding etc