Repository: azure/azure-sdk-for-python
Issue: Topic names containing slash

Hi,

I have a topic in Azure service bus containing a slash like: oxiqu/commands. Currently this fails when trying to delete the message from the subscription.

Stacktrace:

```
Traceback (most recent call last):
  File "/Users/costeijn/.virtualenvs/oxiqu/lib/python3.4/site-packages/azure/servicebus/servicebusservice.py", line 892, in _perform_request
    resp = self._filter(request)
  File "/Users/costeijn/.virtualenvs/oxiqu/lib/python3.4/site-packages/azure/http/httpclient.py", line 220, in perform_request
    self.respheader, respbody)
azure.http.HTTPError: Not Found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/costeijn/.pythonz/pythons/CPython-3.4.1/lib/python3.4/threading.py", line 920, in _bootstrap_inner
    self.run()
  File "/Users/costeijn/.pythonz/pythons/CPython-3.4.1/lib/python3.4/threading.py", line 868, in run
    self._target(*self._args, **self._kwargs)
  File "/Users/costeijn/Documents/Git/oxiqu.git/lib/messaging/azure.py", line 23, in start
    self._message_receiver.start(self.on_message_received)
  File "/Users/costeijn/Documents/Git/oxiqu.git/lib/messaging/azure.py", line 85, in start
    msg.delete()
  File "/Users/costeijn/.virtualenvs/oxiqu/lib/python3.4/site-packages/azure/servicebus/__init__.py", line 195, in delete
    self.broker_properties['LockToken'])
  File "/Users/costeijn/.virtualenvs/oxiqu/lib/python3.4/site-packages/azure/servicebus/servicebusservice.py", line 720, in delete_subscription_message
    self._perform_request(request)
  File "/Users/costeijn/.virtualenvs/oxiqu/lib/python3.4/site-packages/azure/servicebus/servicebusservice.py", line 894, in _perform_request
    return _service_bus_error_handler(ex)
  File "/Users/costeijn/.virtualenvs/oxiqu/lib/python3.4/site-packages/azure/servicebus/__init__.py", line 850, in _service_bus_error_handler
    return _general_error_handler(http_error)
  File "/Users/costeijn/.virtualenvs/oxiqu/lib/python3.4/site-packages/azure/__init__.py", line 894, in _general_error_handler
    _ERROR_NOT_FOUND.format(str(http_error)))
azure.WindowsAzureMissingResourceError: Not found (Not Found)
```


Changed files:
azure/servicebus/__init__.py

diff --git a/azure/servicebus/__init__.py b/azure/servicebus/__init__.py
index eeeb1de146..425676a551 100644
--- a/azure/servicebus/__init__.py
+++ b/azure/servicebus/__init__.py
@@ -168,10 +168,10 @@ class Message(WindowsAzureData):
         # extracts the topic and subscriptions name if it is topic message.
         if location:
             if '/subscriptions/' in location:
-                pos = location.find('/subscriptions/')
-                pos1 = location.rfind('/', 0, pos - 1)
-                self._topic_name = location[pos1 + 1:pos]
-                pos += len('/subscriptions/')
+                pos = location.find(service_bus_service.host_base)+1
+                pos1 = location.find('/subscriptions/')
+                self._topic_name = location[pos+len(service_bus_service.host_base):pos1]
+                pos = pos1 + len('/subscriptions/')
                 pos1 = location.find('/', pos)
                 self._subscription_name = location[pos:pos1]
             elif '/messages/' in location: