Fix bug when spelling words with non-ascii characters

Signed-off-by: Daniel Francis <francis@sugarlabs.org>