JSON encode SQL instance name in initialisation call

When using named SQL instances, fixes issues loading further info on SQL pages (e.g. details for query on SQL top query page).

It's just a missing javascript string encode.

I think this will probably also address issue #34.