Fix encode error when dealing with unicode filename.
Merge pull request #4 from aitjcize/master

Fix encode error when dealing with unicode filename