correct docstring in _sanitize