Correctly detect LastHttpContent after encoding