knowah/PyPDF2 — pull request #7 by josephw (2013-03-28 14:12:01+00:00)
Title: 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.