encoding_string<utf16> : add check endian and remove bom.