Place the warm water, salt, sugar, margarine, egg, bread flour and yeast in the pan of a bread machine in that order. Set the machine to the dough setting and start the machine.
When the dough cycle of the machine is finished place the dough on a floured surface. Divide the dough into 3 pieces then roll them into ropes about the thickness of your thumb and about 30cm long. Ropes should be fatter in the middle and thinner at the ends. Pinch 3 ropes together at the top and plait them. Starting with the strand to the right, move it to the left over the middle strand (that strand becomes the new middle strand.) Take the strand farthest to the left and move it over the new middle strand. Continue plating alternating sides each time until the loaf is plated then pinch the ends together and fold them underneath for a neat look.
Grease a baking tray or line with baking paper then place the platted bread on the prepared tray. Cover the loaf with a plastic bag to prevent drying out and let rise in a warm place until doubled in size; about 1 hour.
Preheat oven to 180 degrees C.
Bread Glaze: Whisk together the egg, water and vanilla in a small bowl then brush the glaze on the bread. Sprinkle with sesame seeds or other as desired.
Bake in the preheated oven until golden brown and the loaf sounds hollow when tapped; 35 to 40 minutes.