Parse chunked input correctly