fix encodings