Text this: Low-error encoder for time-bin and decoy states for quantum key distribution