implements utf8 functions for unix
utf8 function test
adds debug option