io: Add InputStream.peek method.