Fix query-arg->int conversion, as the master can return binaries for some query args.