to_c_str() is probably what you want.