It's funny that they would use the word "encoded" to describe how DNA 'fixes' Sex in our genes. It really goes to show how much the author does NOT understand genetics and Biology.
DNA is the expression of a cells potential to be something depending on what is turned 'on' and what is turned 'off' at a particular point in time of the cells life cycle.
We are all have characteristics that change over time while developing from a single cell, at one point we even have gills and a tail. At all times we have the DNA for all characteristics of both Male and Female. science is only beginning to understand the basics of DNA and are finding that there is a possibility that or environment can possibly trigger changes in DNA (think about that before you drink water recycled how many 100's of times with every thing else dumped in the sewer and 'purified' for your consumption).
Want to be bio-luminescent ? Link