let to_u8 s = 
  try Glib.Convert.locale_to_utf8 s
  with Glib.Convert.Error (_,err) ->
    prerr_endline err;
    s