Text this: Q-switching instability of modelocked pulses