TBXML refuses to work with empty data. Safe BOM check. strstr replaced to strnstr.