Convert to OpenBSD 5.5 ksh removed toutf8() and tolat1() functions