[NSString stringWithUTF8String] is allocated strings from the current
autorelease pool, but none are being defined here and from the call
stack. Since we wrap the strings in another object not allocated in the
autorelease pool, we can just locally setup the autoreleasepool while
creating the object.
Fix memory leaks when logs are going on.