various unicode, file io, arithmetic, md5 fixes