Seems confusing and fragile to require calling code to call c_str()
when passing a read-only view of a std::string.
Fix that by using std::string_view, which can be constructed from string literals and std::string.
Also, remove the now unused c_str()
from src/wallet/bdb.cpp
.