# Buggy code
def __init__(self, provider: str, path: str):
    super().__init__(provider=provider, path=path)
    self.headers: Dict[str, Dict[str, str]] = {
        "package_test/explicit.yaml": {"package": "a.b"},
        "package_test/global.yaml": {"package": "_global_"},
        "package_test/group.yaml": {"package": "_group_"},
        "package_test/group_name.yaml": {"package": "foo._group_._name_"},
        "package_test/name.yaml": {"package": "_name_"},
        "package_test/none.yaml": {},
        "primary_config_with_non_global_package.yaml": {"package": "foo"},
    }
    self.configs: Dict[str, Dict[str, Any]] = {
        "primary_config.yaml": {"primary": True},
        "primary_config_with_non_global_package.yaml": {"primary": True},
        "config_without_group.yaml": {"group": False},
        "dataset/imagenet.yaml": {
            "dataset": {"name": "imagenet", "path": "/datasets/imagenet"}
        },
        "dataset/cifar10.yaml": {
            "dataset": {"name": "cifar10", "path": "/datasets/cifar10"}
        },
        "level1/level2/nested1.yaml": {"l1_l2_n1": True},
        "level1/level2/nested2.yaml": {"l1_l2_n2": True},
        "package_test/explicit.yaml": {"foo": "bar"},
        "package_test/global.yaml": {"foo": "bar"},
        "package_test/group.yaml": {"foo": "bar"},
        "package_test/group_name.yaml": {"foo": "bar"},
        "package_test/name.yaml": {"foo": "bar"},
        "package_test/none.yaml": {"foo": "bar"},
    }


# Traceback (UnicodeDecodeError)
Traceback (most recent call last):
File "C:\Users\user\anaconda3\envs\poolobs\lib\site-packages\hydra\_internal\utils.py", line 198, in run_and_report
return func()
File "C:\Users\user\anaconda3\envs\poolobs\lib\site-packages\hydra\_internal\utils.py", line 350, in <lambda>
overrides=args.overrides,
File "C:\Users\user\anaconda3\envs\poolobs\lib\site-packages\hydra\_internal\hydra.py", line 104, in run
run_mode=RunMode.RUN,
File "C:\Users\user\anaconda3\envs\poolobs\lib\site-packages\hydra\_internal\hydra.py", line 512, in compose_config
from_shell=from_shell,
File "C:\Users\user\anaconda3\envs\poolobs\lib\site-packages\hydra\_internal\config_loader_impl.py", line 156, in load_configuration
from_shell=from_shell,
File "C:\Users\user\anaconda3\envs\poolobs\lib\site-packages\hydra\_internal\config_loader_impl.py", line 262, in _load_configuration
run_mode=run_mode,
File "C:\Users\user\anaconda3\envs\poolobs\lib\site-packages\hydra\_internal\config_loader_impl.py", line 805, in _merge_defaults_into_config
hydra_cfg = merge_defaults_list_into_config(hydra_cfg, user_list)
File "C:\Users\user\anaconda3\envs\poolobs\lib\site-packages\hydra\_internal\config_loader_impl.py", line 793, in merge_defaults_list_into_config
package_override=default1.package,
File "C:\Users\user\anaconda3\envs\poolobs\lib\site-packages\hydra\_internal\config_loader_impl.py", line 698, in _merge_config
package_override=package_override,
File "C:\Users\user\anaconda3\envs\poolobs\lib\site-packages\hydra\_internal\config_loader_impl.py", line 592, in _load_config_impl
package_override=package_override,
File "C:\Users\user\anaconda3\envs\poolobs\lib\site-packages\hydra\_internal\config_repository.py", line 48, in load_config
package_override=package_override,
File "C:\Users\user\anaconda3\envs\poolobs\lib\site-packages\hydra\_internal\core_plugins\file_config_source.py", line 33, in load_config
header_text = f.read(512)
File "C:\Users\user\anaconda3\envs\poolobs\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 117: character maps to <undefined>

# Fixed code
def __init__(self, provider: str, path: str):
    super().__init__(provider=provider, path=path)
    self.headers: Dict[str, Dict[str, str]] = {
        "package_test/explicit.yaml": {"package": "a.b"},
        "package_test/global.yaml": {"package": "_global_"},
        "package_test/group.yaml": {"package": "_group_"},
        "package_test/group_name.yaml": {"package": "foo._group_._name_"},
        "package_test/name.yaml": {"package": "_name_"},
        "package_test/none.yaml": {},
        "primary_config_with_non_global_package.yaml": {"package": "foo"},
    }
    self.configs: Dict[str, Dict[str, Any]] = {
        "primary_config.yaml": {"primary": True},
        "primary_config_with_non_global_package.yaml": {"primary": True},
        "config_without_group.yaml": {"group": False},
        "config_with_unicode.yaml": {"group": "数据库"},
        "dataset/imagenet.yaml": {
            "dataset": {"name": "imagenet", "path": "/datasets/imagenet"}
        },
        "dataset/cifar10.yaml": {
            "dataset": {"name": "cifar10", "path": "/datasets/cifar10"}
        },
        "level1/level2/nested1.yaml": {"l1_l2_n1": True},
        "level1/level2/nested2.yaml": {"l1_l2_n2": True},
        "package_test/explicit.yaml": {"foo": "bar"},
        "package_test/global.yaml": {"foo": "bar"},
        "package_test/group.yaml": {"foo": "bar"},
        "package_test/group_name.yaml": {"foo": "bar"},
        "package_test/name.yaml": {"foo": "bar"},
        "package_test/none.yaml": {"foo": "bar"},
    }