improved unicode handling in python2 for compact file listing