Remove invalid characters from xml python