Fork of TBXML that does encoding detection