better base-path handling of slash character. Closses issue #157
Merge pull request #159 from zznate/endpoint-changes-2

better base-path handling of slash character. Closses issue #157