Turned out the problem was with the presentation in NetBeans & xDebug. They were showing (string) as the return, when in fact it was a serialized string. I was expecting to see the content. Very odd.