Make sure that we feed set_url() with a QUrl from an UTF-8 encoded string

This fixes issue #2106 for me.