Fix opening some password protected documents
e.g. the ones in poppler issue 824
The PDF spec doesn't say (or I couldn't find it) how a user entered string is converted to the byte array needed for password checking, so we try both latin1 and utf8
e.g. the ones in poppler issue 824
The PDF spec doesn't say (or I couldn't find it) how a user entered string is converted to the byte array needed for password checking, so we try both latin1 and utf8