Allow input with an optional BOM.