Using ASP.NET Core's middleware to modify response body