reseting input_stream before second usage

fixes #8
Merge pull request #10 from RaVbaker/fixing_with_bytes_support_for_awt

reseting input_stream before second usage