Fix encoding of X and checkmark characters