Fixed dot trimming bug

This bug could cause body content to be terminated early if the
body contained a line which consisted of only ".\r\n" as the duplicated
'escaping' dot was being removed.
Merge pull request #1026 from greenbender/dev

Fixed dot trimming bug