Notes:
- chain.h and chain.cpp were fixed and removed by us in D12816 (out of order backport)
- strencodings.* was fixed and removed by us in D12813 (out of order backport)
- we do not have a bech32.cpp file, so I removed it as well
This is a backport of core#21000