Attached is a possible fix, but maybe Enrico knows some better way.
I think that patch is no good, because it doesn't take into account all the other special characters that the shell might interpret.
But maybe there is a glib function already made for this: g_shell_quote()
- Jeff