Handle quotes correctly in the bookmark file exec attribute
Submitted by Morten Welinder
This function will not do its job right if the application name contains quotes.
And if someone really evil made it contain ^H, then the resulting file would not be valid xml. If fact, there does not seem to be a way of representing such a name.
Oh, and the application name can come from g_get_application_name which can come from g_get_prgname which is from argv. That may or may not be UTF-8 encoded.