More user input sanitization in git-shell-commands