Fixed encoding problem in listdir plugin.