Fix a stack to use the new .to_c_str() api