     {userinfo, host, port} = split_authority(authority)
 
     scheme = scheme && String.downcase(scheme)
-    port   = port || (scheme && default_port(scheme))
+    port = port || (scheme && default_port(scheme))
 
     %URI{
-      scheme: scheme, path: path, query: query,
-      fragment: fragment, authority: authority,
-      userinfo: userinfo, host: host, port: port
+      scheme: scheme,
+      path: path,
+      query: query,
+      fragment: fragment,
+      authority: authority,
+      userinfo: userinfo,
+      host: host,
+      port: port
     }
   end
 


  # TODO: Remove on 2.0
  def decode_query(query, %_{} = dict) when is_binary(query) do
    IO.warn "URI.decode_query/2 is deprecated, please use URI.decode_query/1"
    decode_query_into_dict(query, dict)
  end


  """
  @spec char_unreserved?(char) :: boolean
  def char_unreserved?(char) when char in 0..0x10FFFF do
    char in ?0..?9 or char in ?a..?z or char in ?A..?Z or char in '~_-.'
  end

  @doc """
