Fixed encoding problem in listdir plugin.

This pull request is related to the issue #273.
It fix encoding errors in the listdir plugin when directories have non-ascii characters.