prevent assertion failure with some versions of iconv

Some versions of iconv; notably the one that ships with Debian, do not
allow the input buffer to be of length zero and will throw an assertion
error if this is the case.
Release 2.0.1