Fix check_uniques in non-unicode locale

Authored by thomie on Jun 30 2016, 3:32 AM.