Fix encoding of apostrophes in result objects