Fix URL replacement in BaseOpenStackMockTest

This PR fixes the replacement of service URL strings containing spaces. How many of us have spent hours trying to debug something all because of a space? ;)
I remember this bug. Does it make sense to add a test for this?
+1