Simplify response body encoding