a function to set utf-8 typetag on strings
detect current dir