Replace deprecated g_basename with g_path_get_basename.

gchar is correct and it is local only.  The rest of irssi should probably move to proper glib types as well.