process args and query (ptql) string - support dbcs for windows