Fixes for match validation

Previously, an error would be encountered for some matches which contained "To Be Determined" and "TBD" as team counties and codes respectively. These matches did not have a "goals" key in the teams' dictionaries, causing a KeyError when printing match info. This fix should properly validate matches to check for both valid home and away teams so the error isn't encountered.

In addition, I implemented a small fix for python 3 involving string encoding, should work fine on both 2 and 3 now.