Stability of one-dimensional electromagnetic solitons in relativistic laser plasmas