query2str: mention max_length in docstring