try to deal with filename encoding