Description: Use g_filename_to_utf8 for filename conversion
Origin: upstream, r257
Bug-Ubuntu: https://launchpad.net/bugs/749074
Forwarded: not-needed

--- imms-3.1.0~rc8.orig/clients/audacious/audplugin.cc
+++ imms-3.1.0~rc8/clients/audacious/audplugin.cc
@@ -102,8 +102,9 @@ string imms_get_playlist_item(int at)
     string result = tmp;
     free(tmp);
     gchar *realfn = g_filename_from_uri(result.c_str(), NULL, NULL);
-    tmp = aud_filename_to_utf8(realfn ? realfn : result.c_str());
-    result = tmp;
+    tmp = g_filename_to_utf8(realfn ? realfn : result.c_str(),
+                             -1, NULL, NULL, NULL);
+    if (tmp) result = tmp;
     free(tmp);
     free(realfn);
     return result;
