Fix an off-by-one error, and ensure the output buffer is null terminated
Fix an off-by-one error, and ensure the output buffer is null terminated

edubkendo/erlang-iconv,edubkendo/erlang-iconv,Vagabond/erlang-iconv