the router allows String contraints.

Closes #9432.
Merge pull request #9437 from senny/9432_undefined_method_source_in_routes

the router allows String contraints.