IDE is suddenly writing files with some prefix making them invalid for most consumers

I don’t know what I did, but suddenly the IDE is writing files with some invisible characters at the beginning, e.g., foo.txt to which I’ve only added Hello, world. shows up as the following using od -a foo.txt:

0000000   o   ;   ?   H   e   l   l   o   ,  sp   w   o   r   l   d   .
0000020

Notice the first three characters before the actual text. If I launder these files through dos2unix and unix2dos, they’re “fixed”, but I’m assuming I’ve enabled some option to add something like a byte order mark or similar.

Anyone know what I’ve done and how to undo it? I imagine it’s just dumb user error, but I’ll be darned if I can figure out what it is… Thanks in advance!

UPDATE: IntelliJ IDEA is offering a Remove BOM action, so perhaps I’ve enabled some option for storing files with BOM. I’ll see what I can find.

UPDATE 2: Yup, somehow this was set as follows:

image

I’ve never even seen that setting, so I’m not sure what would have changed it to include BOM on Windows. Any ideas?