Export sanitizer common function