make sanitation safer for numbers and booleans