Added UTF-8 encoding to Dir.entries