url encode instance id so link works