Fixed code style and elusive bug of Bzip2Encoder