Unicode python2

Related to issue #255

Allows input files with utf-8 encoding.