Move encodings to separate files.