Mechanism of chiral proofreading during translation of the genetic code