use debug_safe in postfork do_builtin_io. Closes #495