fix possible read past null terminator
rename function

- remove ambiguity because the other load functions are used to
  load serialized structs, but this one is used to parse textual data.
remove unused import
add memory functions
new serialize functions
use new functions