Use the same implementation of urllib.quote in test_connection_manager and connection_manager.py

Signed-off-by: k4rl85 <k4rl85@hotmail.com>