Fix comment middleware

Middleware should work now when charset is present in Content-Type