In 3.1.1 at least you can add , :format => false to the end of the route.
Found here: http://guides.rubyonrails.org/routing.html#request-based-constraints
under section 3.11 Route Globbing
eg..
match '*pages' => 'pages#show', :format => false
Which would allow params[:pages] to include a period.