Updated the configuration on the serializer, so that it would encode all
non ASCII characters and entity references.  This is related to #3.