Add wxConvAuto::GetEncoding(), other improvements and bug fixes. See https://github.com/wxWidgets/wxWidgets/pull/2072