test_dump: make more robust against encoding issues
test_dump: make more robust against encoding issues

NiKiZe/python-registry,williballenthin/python-registry,zweger/python-registry,azmikamis/python-registry,ohio813/python-registry