Fixed handling of utf8 in normalize_string