This also adds a version of `BLI_str_escape` that returns an std::string, because it's much easier to use in C++ code.