On the spectrum and polarization of magnetar flare emission