rescue to fix_encoding when writing message fails due to encoding errors
Make sure m.snippet is not nil before trying to fix_encoding!