Fix xml loading with weird characters