function _encodeValue(value) {
        return value.replace("&", "&amp;").replace("#", "&#35;");
    }
Encodes the special Char value given.

@param {string} value
The value to encode

@return {string}
The encoded string