Spin and charge dynamics of the one-dimensional extended hubbard model