A measurement of the pion charge radius