Fixed a TypeError when using filters in Python 3.3 

In Python 3.3, using a filter with a regular expression match fails with:

if self._pattern.match(word):
TypeError: buffer size mismatch

(this fix isn't ideal as it duplicates code from the SpellChecker class)