git_connect_git(): forbid newlines in host and path