Serializing directly to file in UTF8.

The XML Serializer now serializes directly to file in UTF8 in order to get the same xml file header and encoding under mono and .net.

Also added locks in Serializer property initializer for thread safety.