Typos correction
minor #440 Typos correction (Triiistan)

This PR was merged into the 5.1-dev branch.

Discussion
----------

Typos correction

Commits
-------

6570fb1 Typos correction
Fix data writing to stream
bug #427 Fix data writing to stream (videv)

This PR was squashed before being merged into the 5.1-dev branch (closes #427).

Discussion
----------

Fix data writing to stream

There were problem with streaming data, when using embed images or while sending big message. Connection to SMTP server and email sending was an interrupted.
It was due to the fact that fwrite operations on non-blocking socket streams can be interrupted by the arrival of new packets.
After this fix writing continues  until all data is sent.

Commits
-------

214c5dc Fix data writing to stream
updated CHANGELOG
prepared the 5.1.0 release
bumped version to 5.1.1-DEV
fixes transposed from-charset and to-charset arguments in
mbstring_convert_encodng
bug #444 Incorrect character encoding due to transposed arguments for mbstring_convert_encoding (mbunzel)

This PR was merged into the 5.1-dev branch.

Discussion
----------

Incorrect character encoding due to transposed arguments for mbstring_convert_encoding

Depending on which extension is installed, swiftmailer will call mb_convert_encoding($string, $charset, 'utf-8') or iconv($charset, 'utf-8//TRANSLIT//IGNORE', $string).

The signatures of these functions are mb_convert_encoding($str, $to_encoding, $from_encoding) and iconv($in_charset, $out_charset, string $str).

-> those two function calls do the exact opposite of each other. Users with installed mbstring extension will experience garbled output if the specified charset is any value other than utf-8 or iso-8850-1, in which case the conversion is skipped.

This pull request fixes the transposed arguments so that both mbstring and iconv will convert *from* $charset *to* utf-8.

Commits
-------

62a4be0 fixes transposed from-charset and to-charset arguments in mbstring_convert_encodng
fixed DecoratorPlugin.php for PHP 5.2
bug #450 fixed DecoratorPlugin.php for PHP 5.2 (sstok)

This PR was merged into the 5.1-dev branch.

Discussion
----------

fixed DecoratorPlugin.php for PHP 5.2

fixes #449

Commits
-------

25eb225 fixed DecoratorPlugin.php for PHP 5.2
PHPUnit bootstrap
Start moving tests to phpunit.