improved query string passing to ajax dispatch to allow complex characters