- added some tests
- fixed a bug which occurred when replacing properties in wrongly encoded files (i.e. UTF-8 characters in XML files)