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.