Could you test this with and without repr() and filesystem2unicode()? It seems wrong.