Allow custom decoder in test.
Test decoder also in unicode mode.
Fix lex_it for non-binary mode.
Fix more tests.
Refactor some tests.
Hack around Python bug: UnicodeDecodeError does not like non-binary input, apparently.