Serialize boolean attributes as 'true' or 'false'