fixed bug in transfer encoding chunked. Fixes #110