Fixing `Content-Length` header in `error()` (multibyte support)