Before you use this you need to check that a) it returns a string, and b) it's non-null indicating that an exception didn't occur. I'm also not totally convinced this function reference counts correctly.