Updated MetaDataWriter.java file.

It now implements the interface StringNormalizer.

Also , sets the xml metadata file , after writing in it , as read-only.