# File lib/mail/version_specific/ruby_1_9.rb, line 50 def Ruby19.b_value_decode(str) match = str.match(/\=\?(.+)?\?[Bb]\?(.+)?\?\=/m) if match encoding = match[1] str = Ruby19.decode_base64(match[2]) str.force_encoding(fix_encoding(encoding)) end str.encode("utf-8", :invalid => :replace, :replace => "") end