Filter language in url_rewrite

If language is specific, url_rewrite will now reject any entries with
none of the desired languages in the title.

Also fixes a bug which could be encountered with language: any.
Fix another bug encountered with language: any