fix UnicodeEncodeError on text.baseindex.BaseIndex.document_repr() when indexing unicode objects

Fix for issue #2