fix load_verify_locations on unicode paths (closes #22244)
PEP 466: backport hashlib algorithm constants (closes #21307)