Fixed sanitization of text