Substituting an α-helix switches the sequence-specific DNA interactions of a repressor