Make js escaping compatible with magic_quotes_sybase (#1616953),