fixed code for test_url_encoder