Started testing also unicode encoder.
More consistent implementation: also allow ulatex+inputenc.
Make more tests work.
Fix remaining errors.