Bugfix for SHA1Hash::toString()
Another bug that I accidentally introduced after performance optimization.
snprintf() does buffer[maxlen - 1] = '\0';
if maxlen > 0
and target buf is full.
So this func returned infohash without last char.
This resulted in crash of some scripts during initialization (in particular email_notifications
script). Scripting plugin must be enabled to test this.