Move encoding to own folder.