Write the document's text to a ``path`` on the filesystem.

def write(self, path):
        """Write the document's text to a ``path`` on the filesystem."""
        with codecs.open(path, 'w', encoding='utf-8') as f:
            f.write(self.text)