The prefix is checked as bytes. The export preserves every byte after the selected mark.
A few things to know.
Checks leading UTF-8, UTF-16LE, UTF-16BE, UTF-32LE and UTF-32BE signatures. Supports local files up to 128 MiB and pasted text up to 200,000 UTF-16 code units. The result concerns the prefix, not full-file encoding validity.
Choose Original file bytes and open a local file. For pasted text, switch to Pasted Unicode text.
Check the leading bytes. If two signatures match, choose the encoding used when the source was saved.
Download a copy with the mark removed, or copy the cleaned pasted text.