Now using a buffer for strings. Better than segfault but not ideal.