fix(cli): handle None URL in prepare_tdoc_file and improve error handling
* Raise ValueError if metadata.url is None to prevent further issues.
* Ensure filename is converted to string for consistency.
* Add comments for clarity on non-zip file handling.