fixing bug in path unicode method