Some path improvements. Get rid of .decode().encode() of utf-8 which leads to errors.