Added check if path is unicode