Encoded the rigth stream url