Encoded recoupling and decoupling: An alternative to quantum error-correcting codes applied to trapped-ion quantum computation