diff --git a/core/lib/Drupal/Core/PathProcessor/PathProcessorDecode.php b/core/lib/Drupal/Core/PathProcessor/PathProcessorDecode.php
index a74b1461b235974e0c6d1ffa1b792dc49ce35080..250b99b2b4c67869f6f4a1baed55cf65e6f4f3cd 100644
--- a/core/lib/Drupal/Core/PathProcessor/PathProcessorDecode.php
+++ b/core/lib/Drupal/Core/PathProcessor/PathProcessorDecode.php
@@ -23,7 +23,7 @@ class PathProcessorDecode implements InboundPathProcessorInterface {
    * {@inheritdoc}
    */
   public function processInbound($path, Request $request) {
-    return urldecode($path);
+    return rawurldecode($path);
   }
 
 }