Mail headers may contain characters where the simple definition breaks, which results in wrong formatting on output. Fixes #235.