Fix escaping of single quotes in file menu

Fixes #266 by adding a function to utilities that will replace
all occurences of a single quote with '\'' except for the first
and last ones. This function is then called before setting/running
the shell command from the semantic menu.