To keep the cheese from melting out of chicken cordon bleu, ensure that you create a deep pocket in the chicken breast and secure the opening with toothpicks. This will help keep the ham and cheese inside the chicken while it cooks on the grill.