Improving filter encoding of non-Unicode strings

* Improves the filter helper's "encode" filter by checking for non-
  Unicode string types, stripping smart characters, and converting.
Changing dispatch base path parsing

* Changes how a dispatch base path is parsed to allow for any character
  other than `@`.