Deprecated unique_valid_encodings; renamed to unique_valid_encoding_groups for clarity.
Added YARD doc comments, improved test coverage.