Chaos in the one-dimensional wave equation