Studio: fixed nasty problem with query history when text contains "