Closing input stream.
Add commons-codec
Replace internal codec by commons-codec.