api/helpers: implement C string to String helper

Use it in buffers.c