Change to generate a valid URI

The rand_text function and the commenting out of the encoder means that invalid URI data is written when this module is sent. I changed that to be all alphanumeric characters