Improved chunked transfer encoding