using libxml's internal variable for textnoenc-oding

Resolves issue #67