Fixed encoding errors

The sentences as input weren't always going to unicode.  Fixed.