Children's wear company Carter's has booked an increase in second-quarter earnings and sales, exceeding the firm's expectations.