- The invalid URL will now get encoded when using QUrl. - The check for a None url_text is somewhat pointless as I don't think this can ever happen in the real circumstances.