# encoding: utf-8

module ActiveCleaner
  class Utf8mb3Cleaner < BaseCleaner

    def clean_value(old_value, record=nil)
      unless old_value.nil?
        old_value.each_char.select { |char| char.bytes.length < 4 }.join('')
      end
    end

  end
end

# encoding: utf-8

module ActiveCleaner
  class Utf8mb3Cleaner < BaseCleaner

    def clean_value(old_value, record=nil)
      unless old_value.nil?
        old_value.each_char.select { |char| char.bytesize < 4 }.join('')
      end
    end

  end
end

Use a 1.9.3-compatible way of counting bytes in Utf8mb3Cleaner
Fix: Use a 1.9.3-compatible way of counting bytes in Utf8mb3Cleaner
