assorted minor bugfixes, mostly utf-8 & scheme related