Fix newline in signature of attachment

Fixes #2787