Fixed the URL routing problem by adding a URI::encoder