Fix article rendering when charset is invalid