make alternative regex search syntax (~=) work again
fix loading of queries containing single quotes in their name

fixes #106