Revert "Minor performance optimization"

This reverts commit 510a8fc6d7fd2af9fd39970ff3de4d9aac382706.
[ujson] Added support for seralizing objects to JSON

- This is accomplished by calling the __unicode__ function on an object.
- Added unit tests to test this change.  It also seems that this should not be
  leaking memory according to the test in tests/tests.py