update for python2 utf-8 encode filename support