Support encoding bigints as strings similar to simplejson from Python.