Prevent email header injection

When a header is set, newline characters are stripped so one cannot inject his/her own email header(s). Since set_header is only used to set one header at a time, it should have no effect on any code relying on this function
Removed empty line at EOF
Updated changelog to reflect latest changes
Merge pull request #2480 from florisluiten/develop

Prevent email header injection