Fixes incorrect usage of StringRef in new grease pencil code, where `.data()` was passed as a null terminated C string. Removes the now unnecessary `std::string` creation that attribute accessors used to fix that problem. Pull Request: https://projects.blender.org/blender/blender/pulls/128298