implement tm_str_from_utf8 (albeit with some fudging) — all encoding/casing tests now passing!