Encode response body with specified charset header