Fixed lots of paper cuts, most unicode-related