The approach I originally suggested was not supported. I've now modified the Simple Wizard Ruby script so that it is supported (but only in dial plan command parameters). So that means you can now use #{req.URI.User[0, 10]}.