utf8: add function to detect a missing UTF-16/32 BOM