# File lib/addressable/uri.rb, line 1319 def normalized_fragment @normalized_fragment ||= (begin if self.fragment begin Addressable::URI.encode_component( Addressable::IDNA.unicode_normalize_kc( Addressable::URI.unencode_component(self.fragment.strip)), Addressable::URI::CharacterClasses::FRAGMENT ) rescue ArgumentError # Likely a malformed UTF-8 character, skip unicode normalization Addressable::URI.encode_component( Addressable::URI.unencode_component(self.fragment.strip), Addressable::URI::CharacterClasses::FRAGMENT ) end else nil end end) end