Moving data sanitization to backend