Bug 11328 - move encodings to a separate package

Summary: move encodings to a separate package