use czipfile. zipfile is too slow for encrypted files
encode pathname to str, or pathname2url will fail