The Great Rename and some flirt with DOMDocument