Escaping spaces of a selected file int he application chooser [Issue-631]

Please note, this code has not been compiled as I have not worked out how to compile.  It is likely to have bugs as I am very new to C code.  The logic for the escape_spaces method is heavily borrowed from eel_str_double_underscores.