Fallback to fix_encoding if gsub fails on text in message chunk
specify exception
Correctly calculate dynamic attachment offset