Reduce code duplication by merging Language, Encoding & Charset factories.