ks_resize() canonicalises the stored string
ks_resize() canonicalises the stored string

It ensures the string is NUL-terminated, especially in the case that
ks_resize(&kstr,1) has been used on a newly-created kstring_t to ensure
that kstr.s is not NULL.

robegan21/upc_utils,robegan21/upc_utils