and if I don't do the encode the paths get messed up for all but python3.