Properly handle strings with internal nul

The strings from NaCl can contain nul characters inside the string
and are not nul terminated. Using ffi.buffer with an explict
size will prevent issues here.