Do you want to process these requests? If they are coming from a rogue bot, you may just want to catch them and drop them. Make sure you also have robots.txt in your public/ folder. As for the underlying handling of parsing such strings by rails, your guess is as good as mine...