Fix reply by email encoding error when using non-ASCII & non-UTF8 charset

I submitted an issue here 
https://github.com/discourse/discourse/issues/1834

Now it passed all rspecs.