Bugfix: _alg34 and _alg35 are expecting ByteStringObject, not str as id.._entry argument.
Don't assume that strings starting with a BOM are valid UTF-16.

Move the logic to catch invalid encoding outside the attempt
at UTF-16 decoding to catch byte arrays that start with a BOM.
improved error handling for PDF files with truncated streams
Merge branch 'master' of https://github.com/cecilkorik/PyPDF2 into cecilkorik-master
Merge branch 'master' of https://github.com/adammorris/PyPDF2 into adammorris-master
Bug fixes and other changes from users.
Merge pull request #7 from josephw/master

Don't assume that strings starting with a BOM are valid UTF-16.
Merge pull request #5 from martijnthe/master

Fixes encrypt()