Use `base::as_string_view()` as a safer alternative to `reinterpret_cast` in a couple of places. Xref: 5472408
5472408