improvements: terminal encodings part 3