fix loading of queries containing single quotes in their name

fixes #106