Upload multipart-encoded streams with CR (0x13) symbol at the end leads to the corrupted data.

In my application I caught the problem with HttpPostRequestDecoder.

When users upload multipart/form-data encoded binary data with apache HttpClient - there is superfluous CR (0x13) symbol at the end of the uploaded stream (if original stream ends with CR symbol).

E.g. input stream: the only symbol 0x13
Data line in the encoded form: 0x13 0x13 0x10

Decoder passes the first 2 CR symbols and stops on the ending LF: 
* [binary data] + CR - interpret as binary data.
* LF - interpret as end of line.