Correctly sanitize number fields