Problem with "national characters"

Hey, 
I fixed the problem of comparing national characters (eg Polish UTF-8). 
This was previously able to generate some errors on duplicate key (on table Tag).