Method createSafeURI was added.