remove an unneded .c_str() in OpenNetworkConnection()