Dare I say...
If you know enough to edit "the kernel", you should know how to make sure it gets saved correctly?
Not helpful, I know.
But you do have a very good reason for doing this, ya? And you're not using a Text editor in the GUI to do it, right?