Avoid spurious errors converting characters

E2BIG error must be handled only for final chunk.

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
Add test for tds_convert_stream.
Propagate EINVAL properly
Retry conversion if we have something in the buffer.
Add check for e2big
Fix last problems with streams