Not sure where the original NSDataExtensions lives, but as Stackoverflow sends a few people here I thought I'd send this.
Avoid leaking a string.
Thanks hotwoofy. But isn't this unnecessary since I use garbage collection on the project?!
I just directly include the source code, and I don't personally use garbage collection. It'll be a no-op in GC environments, so it seems safer overall this way.