Rewrote the shell_escape function in order to make us of GString and g_string_append_c