--- uget-1.5.0.1/src/ug_url.c.debug 2009-11-30 10:55:28.000000000 +0900
+++ uget-1.5.0.1/src/ug_url.c 2010-01-22 18:07:07.000000000 +0900
@@ -184,6 +184,8 @@
if (str_len == -1)
str_len = strlen (str);
result = g_uri_unescape_segment (str, str+str_len, NULL);
+ if (!result)
+ result = g_strndup (str, str_len);
// check encoding
if (g_utf8_validate (result, -1, NULL) == FALSE) {