Fix checking dirs for metainfo.yaml with non-ascii chars with Python 2.7
Summary:
Handling projects where metainfo.yaml are then found in paths with
non-ascii chars still needs a separate, more complicated fix.
This patch should though at least unbreak the run of kapidox on api.kde.org
Test Plan:
Added a subdir "testü" to kcoreaddons, with the patch python2 kapidox does
no longer fail.
Reviewers: ochurlaud, bshah, aacid, lbeltrame
Reviewed By: bshah, aacid, lbeltrame
Subscribers: lbeltrame, davidre, aacid, pino, kde-frameworks-devel, kde-doc-english
Tags: Frameworks, Documentation
Differential Revision: https://phabricator.kde.org/D22836