Fix an issue where router can't recognize downcased url encoding path.

Closes #12269.

Rails 4 unicode routes is not working with Passenger (I tested passenger standalone), because Passenger passes downcased url encoding path.

In webrick, thin and passenger-standalone, I've tested this issue with my fix.
It works fine all.