More robust response body checking against different encodings