RealURL replace segments encode and decode

Put the following lines in the realurl_userconf.php