Fix encodings.