Replacing of invalid characters before export.

Fixes #342 by replacing invalid unicode characters in the message body with spaces.