Fix --smart-case behavior with non-ascii characters. This fixes #124.