QUrl::QUrl(const QString &str) automatically percent encode str.
http://qt-project.org/doc/qt-5.0/qtcore/qurl.html#QUrl-3
QUrl::path() will automatically decode all percent encoded symbols representable in QString 
http://qt-project.org/doc/qt-5.0/qtcore/qurl.html#path