Encode script for XSS testing