Use ActiveSupport::Multibyte #tidy_bytes.