Change mode option to a string as fs.chmod needs expects one