Instead of modifying pathlib, i feel it is better to change util.py in arviz directory (Lib\site-packages\arviz\utils.py). Change line 663 to:
importlib.resources.files("arviz").joinpath(fname).read_text(encoding='utf-8') for fname in STATIC_FILES
i.e. add encoding=‘utf-8’ in the parenthesis would work.