Handle overflow when computing char display width (Bug#9496).