zip: fix buffer overflow on Unicode path names
When creating ZIP files with non-ASCII names (such as some European
accent chars), something was detecting a buffer overflow and bailing
out. It turns out that this has been already fixed earlier this year in
Fedora, so let's reuse their patch as-is.
Bug: https://bugzilla.redhat.com/show_bug.cgi?id=2165653