Conductance of a nanowire with nonlinear electrostatics