private static encode(str: string): string {
        if (!str) {
            return str;
        }
        return str.replace(/&/g, "&")