Update URL Encoding

Change the methods to use rawurlencode and rawurldecode for more consistent encoding with modern standards.