Expand the utf8size call in utf8ndup
Expand the utf8size call in utf8ndup

Rationale behind this is that the string may or may not be null
terminated and thus utf8size may give an incorrect value. However, since
the requested size is provided, we want iterate up to the null
terminated char or the size itself.

sheredom/utf8.h,sheredom/utf8.h