Sanitize stencils before putting them in the database.