Samples and latin1 passwords

Fixes for issues found in the samples and [Gday garçon - open.pdf](http://cgit.freedesktop.org/poppler/test/tree/unittestcases/Gday%20gar%C3%A7on%20-%20open.pdf) from poppler-test (latin1 password "garçon")