Escape extra_flags, to handle e.g. applet names (-d) with spaces.