Add BOM detection to ripper