static bool IsValidData(string data)
{
//Removed for now because of complications with the euro and pound signs. TODO: properly map these (and other) characters.
/*for (int i = 0; i < data.Length; i++)
{
if (!(data[i] == 10 || data[i] == 13 || data[i] > 31 && data[i] < 127))
return false;
}*/
return true;
}