Human: Python program for making url string safe. Assistant: 
Here is a Python program for making url string safe

import urllib.request, urllib.parse, urllib.error

def _url_quote(url):
    """Return a safe version of the given URL.
    This will quote the URL so that it can be safely used in a URL.

    """
    return urllib.parse.quote(url)

# Enter the URL
url ="orange automobil"

# Calling the function
url_safe = _url_quote(url)

#Remember to inspect code for bugs.