Mmm... this is the first task I create in phabricator.kde.org, let's see :-)
Add a comment
// Avoid that if a path contains a '#' then what follows the '#' be interpreted as the fragment identifier of // the URL and not a part of the file path; for more information https://bugs.kde.org/show_bug.cgi?id=270150 can be seen
about the aim of strUrl.replace("#", "%23");