Try to fix handling of BOM on Windows