Fix unicode errors when we land on a byte boundary.