Fix queries containing slashes