A few encoding corrections when it comes wrong.