Use Reader and Scanner, instead of old InputStream.