Structural transitions of encapsidated polyelectrolytes