Fix crash opening terminal in remote locations

Username could be NULL in uri, so use g_strdup instead of strdup to manage it

Closes #9
https://github.com/mate-desktop/mate-file-manager-open-terminal/issues/9