In python2, encode unicode paths with utf-8 (refs #78)
If unicode filenames are not supported, encode unicode arguments before join (refs #78)