Percent encode URLs before passing them to QWebHistory, fixes #218