Replace true/false strings with booleans.