Fixes simplejson DeprecationWarning.