Update encodings.rb: collapse_adjacent_encodings fixed