fix RC when passing .c_str()'s to different threads