Fix XML encoding issues with #php