dunecontrol cannot read opts files created on Windows

I have an .opts file gcc10-2.opts created in a Windows text editor. When passing it to dunecontrol, e.g. inside a WSL, the content is completely ignored and even messes up with the regular flags passed to cmake by dunecontrol, e.g., the dune_<module>_DIR are not handled anymore. Could it be that different file encodings or line endings mess with the linux script?