You've discovered a bug that will be fixed eventually. Every file starts with
Code:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
When you replace every - with – you also replace the - in the encoding. This causes the XML parser to be unable to parse the document and produces an empty file.