adapt_array unicode

modify adapt_array and add some unicode test