title: 'utf-8' codec error while doc2vec
body: <p>Unable to run the programme getting decode error. Actually, I am using gensim and trying Doc2vec library and while doing this I am getting this error? 
  Code:- </p>
  
  <pre><code>def to_array(self):
      self.sentences = []
      for source, prefix in self.sources.items():
          with utils.smart_open(source) as fin:
              for item_no, line in enumerate(fin):
                  self.sentences.append(LabeledSentence(
                      utils.to_unicode(line).split(), [prefix + '_%s' % 
  item_no]))
      return self.sentences
  
  sentences = LabeledLineSentence(sources)
  model = Doc2Vec(min_count=1, window=10, size=100, dm_mean=0, sample=1e-5, 
  negative=5, workers=12)
  model.build_vocab(sentences.to_array())
  </code></pre>
  
  <p>Error:-</p>
  
  <pre><code>File "&lt;ipython-input-88-eab20df20acc&gt;", line 75, in &lt;module&gt;
  model.build_vocab(sentences.to_array())
  
  File "&lt;ipython-input-88-eab20df20acc&gt;", line 58, in to_array
  utils.to_unicode(line).split(), [prefix + '_%s' % item_no]))
  
  File "C:\Users\summert\AppData\Local\Continuum\Anaconda3\lib\site-
  packages\gensim\utils.py", line 235, in any2unicode
  return unicode(text, encoding, errors=errors)
  
  UnicodeDecodeError: 'utf-8' codec can't decode byte 0xef in position 21: 
  invalid continuation byt
  </code></pre>