more consistent check of where logging goes (Thanks Deyan)
sort tests according to test case order
cleaner handling of accents and also avoid accidental dependence on hash key order
put output in utf8 mode; reformatted