Convert StringMap to using StringRef for its APIs.