# File lib/addressable/uri.rb, line 950 def normalized_host @normalized_host ||= (begin if self.host != nil if self.host.strip != "" result = ::Addressable::IDNA.to_ascii( self.class.unencode_component(self.host.strip.downcase) ) if result[-1..-1] == "." # Trailing dots are unnecessary result = result[0...-1] end result else "" end else nil end end) end