Added sanitization routines for mongo agg.