Force zero terminated strings

These calls are currently safe as source strings are more limited, but
enforcing this avois possible problems when the source length is
extended (issue #51).

Signed-off-by: Michal Čihař <michal@cihar.com>