fix MetaHelper corrupting files on Windows

Always use \n for line-endings