Could you instead `writeFileSync` this file with a file mode that you wouldn't usually found ? (e.g. `parseInt(337, 8)`).