XMLWriter doesn't like to write booleans