Add buffer argument to string_allocate function

This allows to create string objects with 60 or less bytes in one call.