Fix bad encoded responses.