Make sure that we feed set_url() with a QUrl from an UTF-8 encoded string.
Removed tobytearray macro because it coerces to ASCII.
Merge pull request #3070 from beedaddy/master

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