Fix a crash when resolving URIs with both spaces and non-UTF8 chars
Fix a crash when resolving URIs with both spaces and non-UTF8 chars

When using "%.*s" in a UTF-8 locale, in at least some cases, glibc
requires that the string not end in something that looks like a
partial UTF-8 character. This seems wrong according to the c99 spec to
me, but regardless, we need to work around it.

https://bugzilla.gnome.org/show_bug.cgi?id=629449

Distrotech/libsoup,ahmedammar/platform_external_gst_libsoup,jwendell/libsoup,fanc999/libsoup,Distrotech/libsoup,fanc999/libsoup,jwendell/libsoup,ahmedammar/platform_external_gst_libsoup,fanc999/libsoup,fanc999/libsoup,Distrotech/libsoup,jwendell/libsoup,ahmedammar/platform_external_gst_libsoup,jwendell/libsoup,Distrotech/libsoup,fanc999/libsoup,jwendell/libsoup,Distrotech/libsoup