FIX - rails_route_from_url would fail if path contained unicode characters

FIX - rails_route_from_url would fail if path contained unicode characters

diff --git a/lib/url_helper.rb b/lib/url_helper.rb
index 38696f8..1915b78 100644
--- a/lib/url_helper.rb
+++ b/lib/url_helper.rb
@@ -68,7 +68,7 @@ class UrlHelper
   end
 
   def self.rails_route_from_url(url)
-    path = URI.parse(url).path
+    path = URI.parse(encode(url)).path
     Rails.application.routes.recognize_path(path)
   end
 

GitHub sha: e1896f7e

We should add a test for this.