fix queryEncode twice bug