detect response body encoding