`process_query` now takes an output buffer so it doesn't have to overwrite the input buffer it just parsed.