2.7.8 changed how xmlcharrefreplace handles surrogates.