Backport Mail's encoding code from 2.5 for Ruby 1.9
Backport Mail's encoding code from 2.5 for Ruby 1.9

Decoding messages in Ruby 1.9 was screwing up but not dying like 1.8. Backporting this fixes the problem.

andreicristianpetcu/alaveteli_old,10layer/alaveteli,andreicristianpetcu/alaveteli,andreicristianpetcu/alaveteli,codeforcroatia/alaveteli,obshtestvo/alaveteli-bulgaria,andreicristianpetcu/alaveteli_old,nzherald/alaveteli,4bic/alaveteli,TEDICpy/QueremoSaber,TEDICpy/QueremoSaber,10layer/alaveteli,petterreinholdtsen/alaveteli,obshtestvo/alaveteli-bulgaria,nzherald/alaveteli,petterreinholdtsen/alaveteli,andreicristianpetcu/alaveteli,nzherald/alaveteli,4bic/alaveteli,obshtestvo/alaveteli-bulgaria,obshtestvo/alaveteli-bulgaria,andreicristianpetcu/alaveteli,Br3nda/alaveteli,TEDICpy/QueremoSaber,TEDICpy/QueremoSaber,codeforcroatia/alaveteli,Br3nda/alaveteli,datauy/alaveteli,petterreinholdtsen/alaveteli,Br3nda/alaveteli,TEDICpy/QueremoSaber,codeforcroatia/alaveteli,nzherald/alaveteli,Br3nda/alaveteli,obshtestvo/alaveteli-bulgaria,datauy/alaveteli,andreicristianpetcu/alaveteli_old,datauy/alaveteli,10layer/alaveteli,andreicristianpetcu/alaveteli_old,nzherald/alaveteli,petterreinholdtsen/alaveteli,petterreinholdtsen/alaveteli,codeforcroatia/alaveteli,andreicristianpetcu/alaveteli_old,4bic/alaveteli,4bic/alaveteli,Br3nda/alaveteli,andreicristianpetcu/alaveteli,4bic/alaveteli