Fixed chunked encoding not working