Encoding fixes for subject lines and escapes lines that start with a dot

Fixes for QEmailServer. See bug #448