Auto-detect input encoding via BOM when using -i/--input-file