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.

I've tested this issue with my fix on webrick, thin and passenger-standalone.
It works fine all.