Updated for Tcl8.1 and higher where internal encoding is UTF-8.