Make sure that we feed set_url() with a QUrl from an UTF-8 encoded string.
Removed tobytearray macro because it coerces to ASCII.