Measurement of the D± production asymmetry in 7 TeV pp collisions