Handle boolean attributes as strings correctly.