Replace invalid xml utf-8 chars in tag contents.