finish untangling encodings