Found this while reviewing #136021. It's somewhat surprising that this didn't cause issues before. This patch also adds some unit tests for `BLI_str_endswith` and `BLI_str_startswith`. Pull Request: https://projects.blender.org/blender/blender/pulls/136679