reformat encodings