text: Title: UnicodeEncodeError during install_deps with emoji in git branch name
  Body: ## Issue
  
  The installation fails on Windows when there is an emoji in the git branch name.
  See [here](https://github.com/hardbyte/python-can/actions/runs/3748530924/jobs/6369914247). I'm not sure if it's a pip or tox error.
  
  [Here is the branch](https://github.com/MyTooliT/python-can/tree/%F0%9F%AA%9F).
  
  ## Environment
  
  Provide at least:
  
  - OS: windows-latest
  - packages: cachetools-5.2.0 chardet-5.1.0 colorama-0.4.6 distlib-0.3.6 filelock-3.8.2 packaging-22.0 platformdirs-2.6.0 pluggy-1.0.0 pyproject-api-1.2.1 tomli-2.0.1 tox-4.0.16 virtualenv-20.17.1
  
  
  ## Output of running tox
  
  Provide the output of `tox -rvv`:
  
  ```console
  Run tox -e gh
    tox -e gh
    shell: C:\Program Files\PowerShell\7\pwsh.EXE -command ". '{0}'"
    env:
      PY_COLORS: [1](https://github.com/hardbyte/python-can/actions/runs/3748530924/jobs/6369914600#step:5:1)
      pythonLocation: C:\hostedtoolcache\windows\Python\3.10.9\x64
      PKG_CONFIG_PATH: C:\hostedtoolcache\windows\Python\3.10.9\x64/lib/pkgconfig
      Python_ROOT_DIR: C:\hostedtoolcache\windows\Python\3.10.9\x64
      Python[2](https://github.com/hardbyte/python-can/actions/runs/3748530924/jobs/6369914600#step:5:2)_ROOT_DIR: C:\hostedtoolcache\windows\Python\[3](https://github.com/hardbyte/python-can/actions/runs/3748530924/jobs/6369914600#step:5:3).10.9\x6[4](https://github.com/hardbyte/python-can/actions/runs/3748530924/jobs/6369914600#step:5:4)
      Python3_ROOT_DIR: C:\hostedtoolcache\windows\Python\3.10.9\x64
  .pkg: remove tox env folder D:\a\python-can\python-can\.tox\.pkg
  gh: install_deps> python -I -m pip install coverage==6.[5](https://github.com/hardbyte/python-can/actions/runs/3748530924/jobs/6369914600#step:5:5).0 coveralls==3.3.1 hypothesis~=[6](https://github.com/hardbyte/python-can/actions/runs/3748530924/jobs/6369914600#step:5:6).35.0 parameterized~=0.8 pyserial~=3.5 pytest-cov==4.0.0 pytest-timeout==2.0.2 pytest==[7](https://github.com/hardbyte/python-can/actions/runs/3748530924/jobs/6369914600#step:5:7).1.*,>=7.1.2
  gh: internal error
  Traceback (most recent call last):
    File "C:\hostedtoolcache\windows\Python\3.10.9\x64\lib\site-packages\tox\session\cmd\run\single.py", line 45, in _evaluate
      tox_env.setup()
    File "C:\hostedtoolcache\windows\Python\3.10.9\x64\lib\site-packages\tox\tox_env\api.py", line 242, in setup
      self._setup_env()
    File "C:\hostedtoolcache\windows\Python\3.10.9\x64\lib\site-packages\tox\tox_env\python\runner.py", line 99, in _setup_env
      self._install_deps()
    File "C:\hostedtoolcache\windows\Python\3.10.9\x64\lib\site-packages\tox\tox_env\python\runner.py", line 103, in _install_deps
      self._install(requirements_file, PythonRun.__name__, "deps")
    File "C:\hostedtoolcache\windows\Python\3.10.9\x64\lib\site-packages\tox\tox_env\api.py", line 96, in _install
      self.installer.install(arguments, section, of_type)
    File "C:\hostedtoolcache\windows\Python\3.10.9\x64\lib\site-packages\tox\tox_env\python\pip\pip_install.py", line [8](https://github.com/hardbyte/python-can/actions/runs/3748530924/jobs/6369914600#step:5:8)3, in install
      self._install_requirement_file(arguments, section, of_type)
    File "C:\hostedtoolcache\windows\Python\3.10.[9](https://github.com/hardbyte/python-can/actions/runs/3748530924/jobs/6369914600#step:5:9)\x64\lib\site-packages\tox\tox_env\python\pip\pip_install.py", line 111, in _install_requirement_file
      self._execute_installer(args, of_type)
    File "C:\hostedtoolcache\windows\Python\3.[10](https://github.com/hardbyte/python-can/actions/runs/3748530924/jobs/6369914600#step:5:10).9\x64\lib\site-packages\tox\tox_env\python\pip\pip_install.py", line 165, in _execute_installer
      outcome = self._env.execute(cmd, stdin=StdinSource.OFF, run_id=f"install_{of_type}")
    File "C:\hostedtoolcache\windows\Python\3.10.9\x64\lib\site-packages\tox\tox_env\api.py", line 379, in execute
      with self.execute_async(cmd, stdin, show, cwd, run_id, executor) as status:
    File "C:\hostedtoolcache\windows\Python\3.10.9\x64\lib\contextlib.py", line 142, in __exit__
      next(self.gen)
    File "C:\hostedtoolcache\windows\Python\3.10.9\x64\lib\site-packages\tox\tox_env\api.py", line 433, in execute_async
      self._log_execute(request, execute_status)
    File "C:\hostedtoolcache\windows\Python\3.10.9\x64\lib\site-packages\tox\tox_env\api.py", line 439, in _log_execute
      self._write_execute_log(self.name, self.env_log_dir / f"{self._log_id}-{request.run_id}.log", request, status)
    File "C:\hostedtoolcache\windows\Python\3.10.9\x64\lib\site-packages\tox\tox_env\api.py", line 447, in _write_execute_log
      file.write(f"env {env_key}: {env_value}\n")
    File "C:\hostedtoolcache\windows\Python\3.10.9\x64\lib\encodings\cp[12](https://github.com/hardbyte/python-can/actions/runs/3748530924/jobs/6369914600#step:5:13)52.py", line 19, in encode
      return codecs.charmap_encode(input,self.errors,encoding_table)[0]
  UnicodeEncodeError: 'charmap' codec can't encode character '\U0001fa9f' in position 21: character maps to <undefined>
    gh: FAIL code 2 ([13](https://github.com/hardbyte/python-can/actions/runs/3748530924/jobs/6369914600#step:5:14).27 seconds)
    evaluation failed :( ([17](https://github.com/hardbyte/python-can/actions/runs/3748530924/jobs/6369914600#step:5:18).48 seconds)
  Error: Process completed with exit code 1.
  ```
  