Alexandre Julliard : wmc: Reimplement input format detection to correctly handle Unicode BOM.