Use smart_unicode() helper in Document.
Add DocumentManager.