engine: Deduplicate characters

This avoids having twice the same candidate in the list presented to the
user.

Fixes #63
Merge pull request #65 from Cangjians/dupes

engine: Deduplicate characters