Prepare for pairs of various encodings.
Frames on X11.