escape quotes in instance param sent to /instance endpoint