implemented URL Encoding