Replace ReadAllStdin usage with standard library code.