Rework the predictable_pretty_json function to fork with a system call.

Much slower, but safer.