Updated reader input stream for OS compat