bug fix - handle cases where response is not UTF8 without crashing