Adding Logging to Routing

Move these to a static internal class `StringBuilderExtensions`.

Extension methods on BCL types is one of the 'good reasons' for making something internal.