Check for BOM in C instead of R.