fix for files with utf-8 encoding

I've solved the problem mentioned in issue #2 .
If we set the file path and the encoding for the File class's ctor then its working fine. Also when I used the codecs.open with the correct encoding it always failed.