use wide character code points for distance calculation