Measurement of the differential cross section and charge asymmetry for inclusive pp -> W+- + X at sqrt(s) = 8 TeV