diff --git a/lib/extracts_path.rb b/lib/extracts_path.rb
index 0b7a0d47caf7b27b1f15978f5735c1c2fe807b0b..d1e569ce3e551b5ee736f18b9c2b1802836ebd24 100644
--- a/lib/extracts_path.rb
+++ b/lib/extracts_path.rb
@@ -108,7 +108,7 @@ module ExtractsPath
       request.format = :atom
     end
 
-    path = request.fullpath.dup
+    path = CGI::unescape(request.fullpath.dup)
 
     @ref, @path = extract_ref(path)