create or replace function strip_diacritics(varchar) returns varchar as $$
DECLARE
src ALIAS FOR $1;
result VARCHAR;
BEGIN result := TRANSLATE(src, E'\xc3\x82\xc3\x83\xc3\xa2\xc3\xa3\xc4\x82\xc3\x8e\xc3\xae\xc5\x9e\xc5\x9f\xc5\xa2\xc3\xa3\xc7\x8d\xc7\x8e\xc8\x98\xc8\x99\xc8\x9a\xc8\x9B\xc3\x83', 'AaaaAIiSsTtAaSsTtA');
return result;
END;
$$ LANGUAGE 'plpgsql' IMMUTABLE;