Change QuotedPrintableEncode()

Part of the solution proposed in Trac#654 by michaelarnauts that didn't make it in Git so far.
This resolves encoding issues:
- replace . at beginning of line to .. (because . at beginning of line is dropped in mail client)
- subject: replace spaces to underscores in addition to other formatting