check for BOM in UTF-16 conversion of byte arrays