fix padding end issues
remove BufferUnderflowException, 0x00 padding is ok
Merge pull request #77 from yinheli/master

fix padding end issues