Remove some invalid XML 1.0 characters so that lxml doesn't choke